package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 26.11.2008
 * Time: 16:29:19
 */
@DOTable(table = "db_object", pk = "id")
public class DBObject extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "db_object_template_id")
    private Integer templateId;
    @DOField(column = "is_complex_object")
    private Integer isComplexObject;
    @DOField(column = "is_deleted")
    private Integer isDeleted;

    public DBObject() {
        this.id = UNASSIGNEDINT;
        this.templateId = UNASSIGNEDINT;
        this.isComplexObject = UNASSIGNEDINT;
        this.isDeleted = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public Integer getComplexObject() {
        return isComplexObject;
    }

    public void setComplexObject(Integer complexObject) {
        this.isComplexObject = complexObject;
    }

    public Integer getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Integer deleted) {
        isDeleted = deleted;
    }
}
